// 行车管理
export default {
  path: '/car',
  component: () => import('@/layout'),
  permission: 'parking',
  meta: { title: '行车管理', icon: 'el-icon-truck' },
  children: [
    // 区域管理
    {
      path: 'area',
      permission: 'parking:area:list',
      component: () => import('@/views/Car/CarArea'),
      meta: { title: '区域管理' }
    },
    // 月卡管理
    {
      path: 'card',
      permission: 'parking:card:list',
      component: () => import('@/views/Car/CarCard'),
      meta: { title: '月卡管理' }
    },
    // 新增月卡
    {
      path: 'addCard',
      hidden: true,
      permission: 'parking:card:add_edit',
      component: () => import('@/views/Car/CarCard/AddCard'),
      meta: { title: '新增月卡' }
    },
    // 编辑月卡
    {
      path: 'editCard',
      hidden: true,
      permission: 'parking:card:add_edit',
      component: () => import('@/views/Car/CarCard/EditCard'),
      meta: { title: '编辑月卡' }
    },
    // 月卡续费
    {
      path: 'renewCard',
      hidden: true,
      permission: 'parking:card:recharge',
      component: () => import('@/views/Car/CarCard/RenewCard'),
      meta: { title: '月卡续费' }
    },
    // 月卡详情页
    {
      path: 'viewCard',
      hidden: true,
      permission: 'parking:card:query',
      component: () => import('@/views/Car/CarCard/ViewCard'),
      meta: { title: '查看详情' }
    },
    // 停车缴费管理
    {
      path: 'pay',
      permission: 'parking:payment:list',
      component: () => import('@/views/Car/CarPay'),
      meta: { title: '停车缴费管理' }
    },
    // 计费规则管理
    {
      path: 'rule',
      permission: 'parking:rule:list',
      component: () => import('@/views/Car/CarRule'),
      meta: { title: '计费规则管理' }
    }
  ]
}
